package org.rslai.tcedit.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.Length;

/**
 * 测试用例编写状态
 * 
 * @author rslai
 */
@Entity
@Table(name="t_case_state")
public class CaseState extends UUIDSupport {
//	INSERT INTO [dbo].[CaseState]
//	               	(UID, State, Describing, Clear, Sequence)
//	                   VALUES ('20070221150947915a3a', '修订', '还需要修改的版本', 1, '00001');
//	               INSERT INTO [dbo].[CaseState]
//	               	(UID, State, Describing, Clear, Sequence)
//	                   VALUES ('20070221150952b3a9bb', '发布', '已经发布的版本', 0, '00002')

	private String name; // 测试用例编写状态名 
	private String describing; // 状态描述
	private int sequence; // 顺序
	
	@Column(nullable = false, length = 20)
	@Length(max = 20, message = "状态名请限制在20字以内")
	public String getName() { return name; }
	public void setName(String name) { this.name = name; }

	@Column(nullable = true, length = 100)
	@Length(max = 100, message = "状态描述请限制在100字以内")
	public String getDescribing() { return describing; }
	public void setDescribing(String describing) { this.describing = describing; }

	@Column(nullable = true)
	public int getSequence() { return sequence; }
	public void setSequence(int sequence) { this.sequence = sequence; }

}
